<!DOCTYPE html>
<div id="result">RUNNING</div>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}

webkitRequestFileSystem(TEMPORARY, 1, function(fs) {
  function removeFile(name, done) {
    fs.root.getFile(name, {create: false}, function(entry) {
      entry.remove(done);
    }, done);
  }

  function createFile(name, pass, fail) {
    fs.root.getFile(name, {create: true, exclusive: true}, pass, fail);
  }

  removeFile('\u0119', function() {
    removeFile('e\u0328', function() {
      createFile('\u0119', function() {
        createFile('e\u0328', pass, fail);
      }, fail);
    });
  });
}, fail);

function pass() {
  document.getElementById("result").innerText = 'PASS';
  if (window.testRunner)
    testRunner.notifyDone();
}

function fail() {
  document.getElementById("result").innerText = 'FAIL';
  if (window.testRunner)
    testRunner.notifyDone();
}
</script>
